16. Exercise: Add Guests

Adding Guests

During this exercise, you'll add new guests to the database using the input text fields.

Exercise Code

Exercise: T07.05-Exercise-AddGuests

We encourage you to go try out what we just did yourself:

Check the boxes below once you're done.

SOLUTION:
  • Use findViewById to get the Edit text views
  • Remove the fake data call in onCreate
  • Implement addToWaitlist to read the text and call addNewGuest
  • Create and implement addNewGuest to insert into the DB